package com.gali.mall.request.cartReq;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @author gali
 * @date 2022/4/21 20:09
 */

public class AddCartReq {
    @NotNull(message = "productId不能为空")
    private Integer productId;

    @NotNull(message = "商品数量不能为空")
    @Max(message = "最大数量为1000",value = 1000)
    private Integer quantity;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

}
